// pages/detail/detail.js
Page({
	data: {
		head_icon: "https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2070453827,1163403148&fm=26&gp=0.jpg",
		username: "枫天洛羽",
		gender: "男"
	},
	modifyOwnerHeadIcon: function () {
		wx.chooseImage({
			count: 1,
			sizeType: ['original', 'compressed'],
			sourceType: ['album', 'camera'],
			success: res => {
				this.setData({
					head_icon: res.tempFilePaths
				})
			}
		})
	},
	toModify: function () {
		wx.navigateTo({
			url: "/pages/modify/modify?" + "username=" + encodeURIComponent(this.data.username) + "&gender=" + encodeURIComponent(this.data.gender)
		});
	},
})